package com.elitel.common.core.log.enums;

public enum ResultCodeEnum {
    SUCCESS(true, 0, "成功"),
    UNKNOWN_ERROR(false, 999999, "未知错误"),

    PERMISSIONS_NOT_REQUIRE(false, 4022, "权限不符合要求"),
    SQL_EXCEPTION(false, 4023, "SQL语法错误"),

    ;

    private Boolean success;
    private Integer code;
    private String message;

    private ResultCodeEnum(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public Boolean getSuccess() {
        return this.success;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

}